import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    from:{}, // 当前登录用户信息
    url:"http://43.142.176.78:5000",
    id:1,
    searchvalue:"",
  },
  getters: {
  },
  mutations: {
    updateUname(state, from) {
      state.from = from // 传入的用户名, 覆盖state中存储的
    },
    updateValue(state, searchvalue){
      state.searchvalue = searchvalue
    }
  },
  actions: {
  },
  modules: {
  }
})
